package com.rzjm.exercise.common.utils;

public abstract class ReflectionUtils extends org.springframework.util.ReflectionUtils {
	public static Object get(Object object, String propertyName, Object ... args) {
		return MethodUtils.invokeMethod(object, MethodUtils.getReadMethod(object.getClass(), propertyName), args);
	}
	
	public static void set(Object object, String propertyName, Object ... args) {
		MethodUtils.invokeMethod(object, MethodUtils.getWriteMethod(object.getClass(), propertyName), args);
	}
}
